import datetime
import time
datestamp=datetime.datetime.utcfromtimestamp(time.time())
timestamp=time.mktime(datestamp.timetuple())
print(timestamp) #1544742241.0